package blog.com.mw.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import blog.com.mw.pojo.po.LabelPO;
import blog.com.mw.pojo.po.LabelTypePO;

public interface LabelDao {
	public LabelPO getLabelById(Long id);
	
	public LabelPO getLabelByContent(String content);
	
	public List<LabelPO> getLabelByArticleId(Long articleId);
	
	public int addLabel(LabelPO label);
	
	public int delLabel(Long id);
	
	//类别Dao操作
	public List<LabelTypePO> getAllLabelType(@Param("keyword") String keyword);
	
	public LabelTypePO getLabelTypeById(Long id);
	
	public LabelTypePO getLabelTypeByContent(String content);
	
	public int addLabelType(LabelTypePO label);
	
	public int updateLabelType(LabelTypePO label);
	
	public int delLabelType(List<Integer> ids);
}
